package com.ivan.common.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
 * @Author      Ivan
 * @Date        2023/4/5 15:49
 * @Description
 */
@Configuration
public class MybatisPlusConfig {

    /**
     * @author Ivan
     * @date 2021/4/3 23:22
     * @Description: 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
